home *** CD-ROM | disk | FTP | other *** search
- BASICXR Cross Reference Utility
- Copyright 1994 by JNGoodale
- _______
- ____|__ | (R)
- --| | |-------------------
- | ____|__ | Association of
- | | |_| Shareware
- |__| o | Professionals
- -----| | |---------------------
- |___|___| MEMBER
-
-
- -------------------------------------------------------------------------
-
- Start-up ................................. 1
- Command Line Options and Switches ........ 1
- Printer Control .......................... 3
- Selective Printing and Page Eject ........ 3
- Reserved Word Files ...................... 4
- Requirements/Limitations ................. 5
- Support and Registration ................. 5
- Shareware Concept/Ombudsman information .. 6
-
- ====================================================================
-
- OVERVIEW
-
- This program will cross reference a program written in Microsoft's
- QBasic, QuickBasic and PDS that do NOT contain line numbers.
-
- It will create the following, based on options selected:
-
- Formatted program listing - Full List or Selected List
- User label cross reference - Includes three sections:
- Line Labels
- Variables
- 1 Ref Only - to quickly spot items (lines labels
- or variables) referenced only once.
- Reserved Word cross reference
-
- Output can be to a File or Printer.
-
- If you are running the unregisered version, a registration reminder
- and option to register are displayed at the beginning and end of the
- program.
-
- The registered version functions identically, but the registration
- reminder is removed and it is about 6K shorter. You receive this
- version when you register.
-
- Page 1
-
- START-UP
-
- To get started, copy all the files on this distribution disk to
- a separate directory, such as \XREF.
-
- To try the program, enter -
- BASICXR
- or
- BASICXR/M if you have a monochrome or B&W monitor.
-
- A sample program has been included (AMORT.BAS) for your test.
- Three "Reserved Word" files are also included, but not needed
- if you are using QuickBasic. See "Reserved Word Files", below.
-
- In order to use BASICXR, you must launch it from the directory
- where the program(s) to be processed reside. BASICXR.COM can be
- in the same directory, or any directory stated in your "PATH"
- command.
-
- If you plan to use one of the supplied "Reserved Word" files
- (more on them later), it must also be in the directory with the
- program(s) to be processed. You can have up to nine special
- Reserved Files in the directory and are given the opportunity
- to select one when you start.
-
- Other Options are described next.
-
- COMMAND LINE OPTIONS
-
- The program does not require that any commands be entered when
- it is started. Program defaults and on-screen selections can be
- used. The program defaults to color display, no left margin,
- print 10 characters per inch and uses the Microsoft QuickBasic 4.5
- internal reserved word list if no QREFQB.W?? files are available.
-
- Switches have NO on-screen selection process. Options (except
- one) all have on-screen selections and are mainly a convenience
- you might use if you always process the same way, or want to
- process lots of program source files the same way.
-
- One Option not selectable on-screen is the "L=n" option. If you
- want to set the left margin, it must be done on the command line.
-
- To execute the program using command line options and /switches -
-
- BASICXR O=YYYYF R=BASICXR.Wxx L=n /switches
-
- Options entered on the command line are useful if you plan to
- list/x-ref several programs during the same run using all the
- same options. It avoids the necessity of key-board input for
- making selections each time you select a program. It is also
- useful to use the command line options within a batch file,
- particularly if you often want the same options turned on and
- run from a menu system or batch file.
-
- Page 2
-
- Format is: BASICXR L=n O=12345 R=resword.fil /switches
-
- Where: n = Left Margin setting. Valid values are 0 to 10.
-
- 1 = Y or N (Full Program List)
- 2 = Y or N (Selected Program List)
- 3 = Y or N (User Line Label/Variable Cross Ref)
- 4 = Y or N (Reserved Word Cross Ref)
- 5 = F or P (Printer output to File or Printer)
-
- resword.fil = Name of Reserved Word file to use
- (NOT the file to be processed!!)
- /switches described below
-
-
- SWITCHES
-
- /M will force the program to monochrome display.
-
- /E will set Epson compatible printers to compressed
- pitch. See "Printer Control"
-
- /T will set Epson compatible printers to Elite pitch
- (12 CPI). See "Printer Control"
-
- /D will set DeskJet compatible printers to compressed
- pitch. See "Printer Control"
-
- The "/M" switch can be used in conjunction with either of the
- printer switches. Order and case are not important, except that
- the /switches all follow ONE "/".
-
- Example:
- ___A___ _____B______ _C_ _D_
- BASICXR O=YNYNF R=BASICXR.WQB /MD L=8
-
- Would:
-
- A] - provide a Full Program List, No Selected List, a Line
- label and Variable cross reference, No reserved word
- cross reference, put the output to a file rather than
- the printer.
-
- B] - Use the file BASICXR.WQB for the list of reserved words
-
- C] - Run Monochrome, and produce compressed print for a
- DeskJet compatible printer.
-
- D] - Set the Left Margin at 8.
-
- There can be no spaces in the O=xxxxx or the R=xxxxxx.xxx.
-
- Page 3
-
-
- PRINTER CONTROL
-
- If you elect to print compressed pitch for either an Epson or
- DeskJet compatible printer, start the program with the
- appropriate switch (/E or /D). The program will send the
- following printer control codes to your printer (or to the
- output file):
-
- Switch Result Re-set Code Set Code
-
- /D DeskJet compressed CHR$(27);"E" CHR$(27);"(s16.67H"
- /E Epson compressed CHR$(27);"@" CHR$(15)
- /T Epson elite CHR$(27);"@" CHR$(27);"M"
-
- In all cases the program resets the printer at the end.
-
- >>NOTE - If you do not execute the program with one of the printer
- switches, no control codes are sent. Line width is 80.
-
- PRINTING TO A FILE
-
- By entering "f" or "F" at the prompt you can direct the output
- to files for later printing. The name of the files created will
- be the same base name as your input source file with an extension
- of ".LST" for listings, ".XRF" for User Cross References and
- ".RWD" for Reserved Word Cross References. Files will be written
- to the same directory as the source and will contain all printer
- codes, ready to be copied to a printer.
-
- SELECTIVE PRINTING
-
- If you want to list only certain sections of a program, each
- section to be listed must be "marked" to Start List and EndList.
-
- This is done by entering the following:
- '> To start list section
- '< To end list section
- All lines between the '> and '< will be listed (printed).
-
- The ' character (single quote) is shorthand for REM, so it will
- have no effect on your program.
-
- Selective printing is mutually excusive with Full List. If you
- select "Full Program Listing", these codes will have no effect,
- and the whole program will be listed.
-
- Page 4
-
- FORCING A PAGE EJECT
-
- If you would like to force a page eject in the program listing,
- simply insert a line with two single quotes as the only text on
- the line - '' - NOT a double quote (").
-
- The single quote is shorthand for REM, so the two single quotes
- will not affect your program, but will trigger a page eject in
- BASICXR.
-
- RESERVED WORD FILES
-
- BASICXR has a built in table of Microsoft QuickBasic 4.5 reserved
- words. For another dialect of Basic you can create your own set
- in a file that must be called "BASICXR.W??". This is simply a
- text file of the reserved words. Three reserved word files are
- furnished with BASICXR. They are:
-
- BASICXR.WQB - for Microsoft QBasic
- BASICXR.W45 - for Microsoft QuickBasic 4.5 (same as the
- DEFAULT contained within the program
- BASICXR.WPD - for Microsoft PDS, Professional Development
- System.
-
- If your programs are written only in Microsoft QuickBasic 4.5 you do
- not need any of these. The program default will work.
-
- If you use add-on routines, such as Crescent Software or Micro-Help
- routines, which contain substantial addidional commands, you should
- use one of the above files as a starter to create a new one for your
- own use. Just use any text editor to add to the list and name it
- "BASICXR.W??" as mentioned above.
-
- Maximum size of BASICXR.W?? is 600 entries.
- Maximum record length for each entry is 16.
-
- Page 5
-
-
- REQUIREMENTS/LIMITATIONS
-
- Minimum requirements to run BASICXR are:
-
- IBM compatible computer
- Monochrome or color monitor
- Printer (unless printing to a file)
- DOS 3.xx or higher
- 256K
-
- Programs to be cross-referenced must be saved in ASCII and have
- the extension ".BAS".
-
- The program assumes Microsoft Basic dialects. I do not guarantee
- any other versions of Basic, although it might work.
-
- It will NOT work with GWBasic, or any dialect using line numbers.
- Even though both QBasic and QuickBasic support line numbers,
- BASICXR will NOT work with any programs containing line numbers.
-
- Customized Reserved Word files - Must be on the directory with the
- programs to be processes. Limited to nine files, maximum 600
- entries on each file, maximum record length 16. They must have a
- name starting with "BASICXR.W" to be recognized by BASICXR. The last
- two charcacters are your choice.
-
- The size of the program it can handle is based on how much main
- memory you have (up to 640K) and how many references there are.
- If it runs out of room for the reference table, the program
- notifies you, marks the listing where referencing will stop, and
- continues the listing, if that option is turned on.
-
- The solution at this point would be to break the program into
- several parts and then run each part thru BASICXR.
-
-
- SUPPORT
-
- Registered owners will receive free support for three months
- after registration by contacting me thru US mail, CompuServe or
- phone at:
-
- Jane N. Goodale
- 7826 Littlejohn Court
- Charlotte, NC 28227
- (704)-537-0329 CompuServe address: 71116,302
-
- REGISTRATION
-
- Registration is available for $15. You can fill out and print
- the registration form within the program BASICXR.EXE or from
- the order blank "REGISTER.DOC".
-
- If you distribute copies of this program, please assure that
- all files and documentation are present.
-
- Page 6
-
- SHAREWARE CONCEPT/OMBUDSMAN INFORMATION
-
- Shareware distribution gives users a chance to try software
- before buying it. If you try a Shareware program and continue
- using it, you are expected to register.
-
- Shareware is a distribution method, not a type of software. You
- should find software that suits your needs and pocketbook, whether
- it's commercial or Shareware. The Shareware system makes fitting
- your needs easier, because you can try before you buy. And because
- the overhead is low, prices are low also. Shareware has the
- ultimate money-back guarantee -- if you don't use the product,
- you don't pay for it!
-
-
- Association Of Shareware Professionals Ombudsmen
-
- This program is produced by a member of the Association of
- Shareware Professionals (ASP). ASP wants to make sure that the
- shareware principle works for you. If you are unable to resolve a
- shareware-related problem with an ASP member by contacting the
- member directly, ASP may be able to help. The ASP Ombudsman can
- help you resolve a dispute or problem with an ASP member, but does
- not provide technical support for members' products. Please write
- to the ASP Ombudsman at P.O. Box 5786, Bellevue, WA 98006 or send
- a Compuserve message via easyplex to ASP Ombudsman 70007,3536
-
-
- .... End of BASICXR.DOC ....
-